// 实体类型
export interface Course {
    courseId: number
    courseName: string
    coachId: number
    courseDuration: number
    courseDescription: string
    coursePrice: number
    image: string
    createTime: string
    updateTime: string
}

// 分页请求数据
export interface PageCourse {
    courseId?:number | null
    courseName?: string
    coachId?: number | null
    courseDescription?: string
    page: number
    pageSize: number
}

// 分页请求响应数据
interface PageRespInfo{
    total: number
    records: Course[]
}

// 分页请求响应
export interface PageResp {
    code: number
    message: string
    data: PageRespInfo
}

// 增加或者删除表单类型
export interface AddAndEditCourse {
    courseId: number
    courseName: string
    coachId: number | null
    courseDuration: number | null
    courseDescription?: string
    coursePrice: number | null
    image?: string
}

// 增删改响应
export interface AddOrEditOrDelResp {
    code: number
    message?: string
    dat?: object
}

// 获取教练响应
export interface GetCourseResp {
    code: number
    message: string
    data: Course
}